<!DOCTYPE html>
<html lang="en" xmlns="http://www.thymmeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">

        table,tr,th,td{
          border: 1px solid #0000dd;
        }
        table
        {
            border-collapse:collapse;
            width: 100%;
            background: azure;
        }
        th{
            height: 60px;
        }
        td
        {
            text-align:center;
        }
        p{
            text-align:center;

        }
    </style>
</head>
<body>
<p>这是我的学生列表</p>
<table >
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
    </tr>
    <tr th:each="item:${student}">
        <td th:text="${item.name}"></td>
        <td th:text="${item.trueName}"></td>
        <td th:text="${item.sex}"></td>
    </tr>
</table>
</body>
</html>